<!DOCTYPE html>
<html lang="es">
	<head>
		<title>Aprendiendo jQuery</title>
		<script src="jquery-1.8.3.min.js"> </script>
		<script type="text/javascript">
			function jqeventos(){
				$(document).on('ready', function(){
					$('.cap13').on('click', function(e){
						e.preventDefault();
						$(".jqcap").text($(this).attr('id'));
					});
					
					$('.btClear').on('click', function(){
						$(".jqcap").text("");
					});
				});
			}
		</script>
	</head> 
	<body>
		<a id="lnkCap13" class="cap13" href="http://www.rfsouto.com" >Rfsouto.com</a>
		<a id="lnkCap13s" class="cap13" href="http://www.rfsouto.com" >Rfsouto.com</a>
		<button class="btClear">Limpiar</button>
		<div class="jqcap"></div><br>
		<!--<script type="text/javascript" src="http://www.rfsouto.com/Scripts/capitulo12.js"></script>-->
		<script type="text/javascript">
		<!--
		jqeventos();
		//-->
		</script>
	</body>
</html>